<?php	$atr=array(
					"name"=>"miniSalary",
					"onsubmit"=>"return checkMiniSalary()"
				  ); 
	echo form_open('miniSalary/insert',$atr); ?> 
<?php $bar="MiniSalary List" ;?>
<table id="box-table-a" cellspacing="1" align="right" width="900px">
 	<tr><td colspan=7 align=right class=bar><?php echo $bar;?></td></tr>
   		<tr>
   			<th>MiniSalary_ID</th>
   			<th>Salary</th>
   			<th>EffectiveDate</th> 
   			<th>Action</th>  			
   		</tr> 		
  		
<?php if (isset($result)){?>
   	
   		<?php foreach ($result as $row):?> 
		<tr>			
			<td class="row1"><?php echo $row->MiniSalary_ID; ?> </td>
			<td class="row1"><?php echo $row->Salary ;?> </td>
			<td class="row1"><?php echo $row->EffectiveDate ;?> </td>
			<td class="row1" align="center">
				 <?php echo '<id=a>'.anchor("miniSalary/edit/$row->MiniSalary_ID",'<img src ="'.base_url().'templates/images/icons/edit.gif" title="Click here to modify"/>').'</a>';?>
				 <?php echo '<id=a  onclick="return checkLink();">'.anchor("miniSalary/delete/$row->MiniSalary_ID",'<img src ="'.base_url().'templates/images/icons/delete.png" title="Click here to delete"/>').'</a>';?> 
			</td>		
		</tr>	   
 		<?php endforeach; ?>				
   		<tr>   			
   			<td><input type="text" name ="MiniSalary_ID" readonly="readonly"/></td>
   			<td><input type "text" name ="Salary" onkeyup="this.value=add_commas(this.value);"/></td>
   			<td><input type "text" name ="EffectiveDate" id="Date" onclick="loadCalendar(this.id);"/></td>
   			<td align="center"><input type="submit" id="submit" value="insert"/> </td>
   		</tr>
   		<tr>
   			<td colspan="4">	<?php echo $this->pagination->create_links(); // tạo link phân trang?>  </td>
   		</tr>
   		<tr>
   			<td colspan="4" id="abc"> 
   				<?php if (isset($error)){
					echo "<br/>";   			
			   		echo $error;
					echo '<br/>';
					form_close();
		   		}?>
		   		
		   	 </td>
   		</tr>
   	</table> 		  	
   	    			   	
 <?php }?>
